from hoca.views import *
from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^hoca/', include('hoca.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^$', main_page),
    (r'^login/$', 'django.contrib.auth.views.login'),
    
    (r'^admin/', include(admin.site.urls)),

    # Login / logout.
    
    (r'^logout/$', logout_page),

    # Web portal.
    (r'^hocabul/', include('hocabul.urls')),

    # Serve static content.
    (r'^static/(?P<path>.*)$', 'django.views.static.serve',
        {'document_root': 'static'}),
    (r'^media/(?P<path>.*)$', 'django.views.static.serve',
        {'document_root': 'media'}),

)
